package com.ruiyi.adrobot.utils;

import java.util.Random;


public class RandomUtil {
    private static Random random = new Random();

    public static int nextInt(int max) {
        return random.nextInt(max);
    }

    public static long nextLong(long max) {
        return (long) (random.nextDouble() * max);
    }

    public static double nextDouble() {
        return random.nextDouble();
    }

}
